package com.example.radiationarea.effect;

import com.example.radiationarea.RadiationAreaMod;
import net.minecraft.world.effect.MobEffect;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class ModEffects {
    // Create mob effect registry
    public static final DeferredRegister<MobEffect> MOB_EFFECTS = 
            DeferredRegister.create(ForgeRegistries.MOB_EFFECTS, RadiationAreaMod.MOD_ID);

    // Register radiation effect
    public static final RegistryObject<MobEffect> RADIATION = MOB_EFFECTS.register("radiation", 
            RadiationEffect::new);

    // Registration method
    public static void register(IEventBus eventBus) {
        MOB_EFFECTS.register(eventBus);
    }
}